const axios = require("axios");
// 天眼查查询
async function uploadFile(data) {
  const url =
    "http://ybb.atest.qianlima.com/auto_data/data/processV2/taskPreprocessing";
  const headers = {
    "Content-Type": "multipart/form-data",
  };
  const res = await axios.post(url, { data, headers });
  console.log(res, "后端返回结果");
  return JSON.parse(res.data);
}

module.exports = uploadFile;
